package com.coffeeloversupportlibrary.core.base;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

/**
 * @author puyv
 * @createTime 2021/11/3 14:22
 * @projectName CoffeeLoverSupportLibrary
 * @className IModel.java
 * @description Model 层顶级接口,继承生命周期观察者接口，让该接口实现类具有生命感知能力，同时规范该接口实现类
 */
public interface IModel extends LifecycleObserver {
    /**
    * @date 2021/11/3 14:25
    * @params []
    * @return void
    * @description 生命周期销毁时回调
    */
    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    void onDestroy();
}
